
class VoicePersonEntity {
  int mikeIndex;
  int userId;
  String icon;
  String yxAccid;
  dynamic charisma;
  String nickname;
  //是否锁麦 0 否 1 是
  int lockFlag;
  //针对房间来说的关系
  String identityType;

  //查询个人信息的时候返回的关系
  int relationType;
  dynamic userLevelName;
  int vipFlag;

  //是否上麦
  // bool isUpWheat=false;

  //是否闭麦
  bool isCloseWheat=false;

  VoicePersonEntity(
      {this.mikeIndex,
        this.userId,
        this.icon,
        this.yxAccid,
        this.charisma,
        this.nickname,
        this.lockFlag,
        this.identityType,
        this.relationType,
        this.userLevelName,
        this.vipFlag,
      });

  VoicePersonEntity.fromJson(Map<String, dynamic> json) {
    mikeIndex = json['mikeIndex'];
    userId = json['userId'];
    icon = json['icon'];
    yxAccid = json['yxAccid'];
    charisma = json['charisma'];
    nickname = json['nickname'];
    lockFlag = json['lockFlag'];
    identityType = json['identityType'];
    relationType = json['relationType'];
    userLevelName = json['userLevelName'];
    vipFlag = json['vipFlag'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['mikeIndex'] = this.mikeIndex;
    data['userId'] = this.userId;
    data['icon'] = this.icon;
    data['yxAccid'] = this.yxAccid;
    data['charisma'] = this.charisma;
    data['nickname'] = this.nickname;
    data['lockFlag'] = this.lockFlag;
    data['identityType'] = this.identityType;
    data['relationType'] = this.relationType;
    data['userLevelName'] = this.userLevelName;
    data['vipFlag'] = this.vipFlag;
    return data;
  }
}
